home *** CD-ROM | disk | FTP | other *** search
- -- card: 4051 from stack: in
- -- bmap block id: 42681
- -- flags: 0000
- -- background id: 3636
- -- name:
-
-
- -- part 1 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=12 top=308 right=329 bottom=97
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Recalculate
- ----- HyperTalk script -----
- on mouseUp
- choose line tool
- put 0 into c
- repeat with c = 1 to number of cards
- go to card c
- put "FRAME:" & c & " of " & number of cards
- DoMenu Select All
- DoMenu Clear Picture
-
- put 250 into cx
- put 150 into cy
- put (line 1 of card field values of card 1) - c * (line 3 of card field values of card 1) into dt
- put (line 2 of card field values of card 1) + c * (line 3 of card field values of card 1) into dp
- put 175 into size
- put 0 into t
- put 0 into p
- put 0 into x
- put 0 into y
- put 0 into dx
- put 0 into dy
- repeat until t > line 4 of card field values of card 1
- put sin(t)*size into x
- put cos(p)*size/1.5 into y
- drag from round(x+cx),round(y+cy) to round(x/1.1+cx), round(y/1.1+cy)
- put t+dt into t
- put p+dp into p
- end repeat
- end repeat
-
- go to card 1
- choose browse tool
- hide message box
- end mouseUp
-
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=189 top=303 right=335 bottom=302
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Show all cards!
- ----- HyperTalk script -----
- on mouseUp
- show all cards
- end mouseUp
-
-
-
- -- part 4 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=454 top=228 right=294 bottom=506
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: values
-
-
- -- part 5 (field)
- -- low flags: 01
- -- high flags: 0001
- -- rect: left=392 top=228 right=294 bottom=453
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: labels
-
-
- -- part 6 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=403 top=208 right=226 bottom=498
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name:
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=391 top=308 right=330 bottom=491
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Edit equations
- ----- HyperTalk script -----
- on mouseUp
- edit script of button recalculate
- end mouseUp
-
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=16 top=31 right=65 bottom=55
- -- title width / last selected line: 0
- -- icon id / first selected line: 14767 / 14767
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Help
- ----- HyperTalk script -----
- on mouseUp
- show card field intro
- end mouseUp
-
-
-
- -- part 9 (field)
- -- low flags: 01
- -- high flags: 0004
- -- rect: left=67 top=36 right=287 bottom=393
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: intro
- ----- HyperTalk script -----
- on mouseup
- hide card field intro
- end mouseup
-
-
-
- -- part contents for card part 5
- ----- text -----
- DeltaT1:
- DeltaT2:
- DeltaC:
- MaxT1:
-
-
-
-
-
- -- part contents for card part 4
- ----- text -----
- 1.047
- 1.047
- .0005
- 132
-
- -- part contents for card part 6
- ----- text -----
- Constants
-
- -- part contents for card part 9
- ----- text -----
-
- This stack is for generating and animating pieces of mathematical art.
-
- Click on "Show all cards" to see the cartoon.
-
- "Recalculate" draws the frames (caution, it is rather slow).
-
- "Edit equations" allows you to manipulate the script which recalculates. It draws its input from the constants box.
-
- This stack was created in haste and abandon by James Bach.